<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

$route['default_controller'] = 'site/home';
$route['404'] = 'site';

//管理后台
$route['admin/([a-zA-Z_-]+)/(:any)']	= '$1/admin/$2';
$route['admin/(login|logout|home)']		= 'admin/$1';
$route['admin/([a-zA-Z_-]+)']			= '$1/admin/index';

//首页
$route['home'] 							= 'site/home/index';
$route['welcome'] 						= 'site/home/welcome';
$route['products']						= 'site/home/products';
$route['product/(:num)']				= 'site/home/product/$1';
$route['company']						= 'site/home/company';
$route['contactus']						= 'site/home/contactus';
$route['category/(:any)'] 				= 'site/home/category/$1';
